﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using Public;

namespace WebsiteAdmin.Salomon.Setting
{
    public partial class Setting : System.Web.UI.Page
    {
        public string HotLine;
        public string SiteKeywords;
        public string SiteDescription;
        public string ICP;
        public string SiteName;
        public string Email;
        public int IsOpen;
        public int IsReg;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dtConfig = Bll.ConfigInfo.MULTIPLE(Global.ConSalomon);
                if (dtConfig.Rows.Count == 1)
                {
                    SiteName = dtConfig.Rows[0]["SiteName"].ToString();
                    SiteKeywords = dtConfig.Rows[0]["SiteKeywords"].ToString();
                    SiteDescription = dtConfig.Rows[0]["SiteDescription"].ToString();
                    ICP = dtConfig.Rows[0]["SiteICP"].ToString();
                    HotLine = dtConfig.Rows[0]["HotLine"].ToString();
                    Email = dtConfig.Rows[0]["Email"].ToString();
                    IsOpen = Convert.ToInt16(dtConfig.Rows[0]["IsOpen"]);
                    IsReg = Convert.ToInt16(dtConfig.Rows[0]["IsReg"]);

                }
                dtConfig.Dispose();
            }
        }
    }
}
